import java.util.Scanner;

import static java.lang.Math.pow;

public class Main {


    //找偶数
    public static void findEven(String[] args) {
        for (int i = 100; i <= 200 ; i++) {
            if(i % 2 == 0){
                System.out.print(i+" ");
            }
        }
    }
    //判断是否为闰年
    public static void isLeapYear() {
        System.out.println("请输入一个年份：");
        Scanner scan = new Scanner(System.in);
        int year = scan.nextInt();
        if((year % 4 == 0 && year % 100 != 0) || year % 400 == 0){
            System.out.println(year+"是闰年");
        }else{
            System.out.println(year+"不是闰年");
        }
    }
    //水仙花数
    public static void ShuiXianHuaShu(){
        for (int i = 100; i < 999; i++) {
            int c = i%10;
            int b = i/10%10;
            int a = i/100;
            if((int)(pow(a,3)+pow(b,3)+pow(c,3))==i){
                System.out.println(i);
            }

        }

    }
    //求折叠次数
    public static void height(){
        int n = 0;//折叠次数
        double a = 0.08;//纸张的厚度
        int b = 8848130;//珠穆朗玛峰的高度
        while(a<b){
            a *= 2;
            n++;
        }
        System.out.println("需要折叠"+n+"次");
    }

}
